<template>
  <el-tag
    :closable="true"
    :type="type"
    @close="handleClose(tag)">
    {{ tag.name }}
  </el-tag>
</template>
<style>

</style>
<script>
    export default {
      props: ['name', 'type'],
      data () {
        return {
          msg: 'hello vue'
        }
      },
      methods: {
        handleClose(tag) {
          this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
        }
      }
    }
</script>
